/**
 * @filename:Proorderlist Dec 22, 2023
 * Copyright(c) 2022 Wonder Co. Ltd.
 * All right reserved.
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description:TODO(生产订单列表实体类)
 *
 * @author: Wonder
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_prd_task_detail")
@ApiModel(value="t_prd_task_detail对象", description="生产订单列表表")
public class Proorderlist extends Model<Proorderlist> {

    private static final long serialVersionUID = 1703231194309892L;

    @TableId(value ="id", type = IdType.AUTO)
    @ApiModelProperty(name = "id" , value = "主键")
    private Long id;

    @TableField(value = "entryId")
    @ApiModelProperty(name = "entryId" , value = "分录id")
    private Long entryId;

    @TableField(value = "billNo")
    @ApiModelProperty(name = "billNo" , value = "生产订单号")
    private String billNo;

    @TableField(value = "materialNo")
    @ApiModelProperty(name = "materialNo" , value = "物料编码")
    private String materialNo;

    @TableField(value = "materialName")
    @ApiModelProperty(name = "materialName" , value = "物料名称")
    private String materialName;

    @TableField(value = "specification")
    @ApiModelProperty(name = "specification" , value = "物料规格")
    private String specification;


    @TableField(value = "unit")
    @ApiModelProperty(name = "unit" , value = "单位")
    private String unit;


    @TableField(value = "ascription")
    @ApiModelProperty(name = "ascription" , value = "归属")
    private String ascription;

    @TableField(value = "planStartDate")
    @ApiModelProperty(name = "planStartDate" , value = "计划开工日期")
    private Date planStartDate;

    @TableField(value = "planFinishDate")
    @ApiModelProperty(name = "planFinishDate" , value = "计划完工日期")
    private Date planFinishDate;

    @TableField(value = "count")
    @ApiModelProperty(name = "count" , value = "数量")
    private Double count;

    @TableField(value = "batchNo")
    @ApiModelProperty(name = "batchNo" , value = "指定批号")
    private String batchNo;

    @TableField(value = "batch")
    @ApiModelProperty(name = "batch" , value = "几锅完成")
    private Double batch;

    @TableField(value = "specifyDate")
    @ApiModelProperty(name = "specifyDate" , value = "指定生产日期")
    private Date specifyDate;

    @TableField(value = "createUserName")
    @ApiModelProperty(name = "createUserName" , value = "创建人")
    private String createUserName;

    @TableField(value = "createUserId")
    @ApiModelProperty(name = "createUserId" , value = "创建人id")
    private Long createUserId;

    @TableField(value = "createTime")
    @ApiModelProperty(name = "createTime" , value = "创建时间")
    private String createTime;

    @TableField(value = "updateTime")
    @ApiModelProperty(name = "updateTime" , value = "修改日期")
    private Date updateTime;

    @TableField(value = "updateUserName")
    @ApiModelProperty(name = "updateUserName" , value = "修改人")
    private String updateUserName;

    @TableField(value = "stockNo")
    @ApiModelProperty(name = "stockNo" , value = "默认仓库")
    private String stockNo;

    @TableField(value = "stockName")
    @ApiModelProperty(name = "stockName" , value = "默认仓库名称")
    private String stockName;

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
